make gtm test OS independent.
authortsteven4 <tsteven4@gmail.com>
Sat, 18 Nov 2017 21:41:10 +0000 (14:41 -0700)
committertsteven4 <tsteven4@gmail.com>
Sat, 18 Nov 2017 21:41:10 +0000 (14:41 -0700)
testo.d/gtm.test

index e48568f89a22b216d7523e2b95da2f9c4c30fdab..3b4c0a5f7b0b8f9e195f9100706b95b2c5230349 100644 (file)
@@ -13,8 +13,11 @@ gpsbabel -i gtm -f ${REFERENCE}/sample.gtm.gz -o gpx,elevprec=6 -F ${TMPDIR}/gtm
 gpsbabel -i gpx -f ${TMPDIR}/gtm1.gpx -o gtm -F ${TMPDIR}/gtm.gtm.gz
 gpsbabel -i gtm -f ${TMPDIR}/gtm.gtm.gz -o gpx,elevprec=6 -F ${TMPDIR}/gtm2.gpx
 compare ${TMPDIR}/gtm1.gpx ${TMPDIR}/gtm2.gpx
-bincompare ${TMPDIR}/gtm.gtm.gz ${REFERENCE}/sample.gtm.gz
+# the gzip format encodes the compressing OS, so comparing
+# gz files that contain the same content but were compressed
+# on different OSs will fail.
+#bincompare ${TMPDIR}/gtm.gtm.gz ${REFERENCE}/sample.gtm.gz
 gunzip -c ${TMPDIR}/gtm.gtm.gz > ${TMPDIR}/gtm.gtm
 gunzip -c ${REFERENCE}/sample.gtm.gz > ${TMPDIR}/sample.gtm
-bincompare ${TMPDIR}/gtm.gtm ${REFERENCE}/sample.gtm
+bincompare ${TMPDIR}/gtm.gtm ${TMPDIR}/sample.gtm